//
//  AboutViewController.m
//  shuodi
//
//  Created by 钱坚 on 15/12/17.
//  Copyright © 2015年 Suzhou fish Information Technology Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "AboutViewController.h"
@implementation AboutViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor colorWithRed:231.0/255.0 green:254.0/255.0 blue:1.0 alpha:1.0]];
    self.title = @"关于";
        
    [self initData];
    [self initView];
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    [[self rdv_tabBarController] setTabBarHidden:YES animated:YES];
}

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [[self rdv_tabBarController] setTabBarHidden:NO animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(IBAction)sendClick:(id)sender{
    
}

-(void)initData{
    
    
}

- (void)initView{
    CGFloat margin_bottom = 60;
    UIView *section = [[UIView alloc]initWithFrame:CGRectZero];
    section.backgroundColor = [UIColor whiteColor];
    section.layer.masksToBounds=YES;
    section.layer.cornerRadius = 4;
    section.layer.borderWidth = 0.5;
    section.layer.borderColor = [utils getBorderColorGray].CGColor;
    
    UILabel *titleLabel = [utils getLabel:18 color:[utils getTextColorGray]];
    titleLabel.frame = CGRectMake(OFFSET, 90, self.view.frame.size.width - OFFSET*2,0);
    titleLabel.text = @"明师课堂成立于2012年，是一家以幼儿园老师为客户群体，提供幼师专业培训整体解决方案，为幼师提供个性化、高效的线上线下一体化学习平台。";
    titleLabel.textAlignment = NSTextAlignmentLeft;
    titleLabel.numberOfLines = 0;
    [titleLabel sizeToFit];
    titleLabel.backgroundColor = [UIColor whiteColor];
    titleLabel.frame = CGRectMake(OFFSET_TEN, OFFSET_TEN, self.view.frame.size.width - OFFSET*2 - OFFSET_TEN*2, titleLabel.frame.size.height);
    
    [section addSubview:titleLabel];
    section.frame = CGRectMake(OFFSET, 90, self.view.frame.size.width - OFFSET*2, [utils getViewBottom:titleLabel]+OFFSET_TEN);
    [self.view addSubview:section];
    
    UILabel *bottomLabel = [utils getLabel:14 color:[utils getTextColorGray]];
    bottomLabel.frame = CGRectMake(OFFSET, self.view.frame.size.height - margin_bottom, self.view.frame.size.width - OFFSET*2,margin_bottom);
    bottomLabel.text = @"Copyright ©2012-2016\n上海明师科技发展有限公司";
    bottomLabel.textAlignment = NSTextAlignmentCenter;
    bottomLabel.numberOfLines = 0;
    bottomLabel.backgroundColor = [UIColor clearColor];
    
    [self.view addSubview:bottomLabel];
}
@end